package auctionServer;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ServerUI {
	private static int tcpPort;
	/**
	 * @param args
	 */
	private static BufferedReader reader;
	
	public static void main(String[] args) {
		
		/**
		 * @Param args the command line arguments
		 */
		
		tcpPort=Integer.parseInt(args[0]);
		String analyticsServerBindingName = args[1];
		String billingServerBindingName = args[2];
		String serverKeyFile = args[3];
        String clientsKeyDir = args[4];
        
        reader= new BufferedReader(new InputStreamReader(System.in));
        
		Server server=new Server(tcpPort, analyticsServerBindingName, billingServerBindingName, serverKeyFile, clientsKeyDir, reader);
		Thread sThread=new Thread(server);
		sThread.start();
		
		while(true){ 
			/*
			try {
				if(reader.readLine().equals("")){
					server.close();
					break;
				}
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			*/
		}

	}

}